﻿#pragma once
#include "SMTBasicsPrivate.h"
#include <QtCore/qglobal.h>
#include <QtWidgets/QWidget>
#include"SMTBasics.h"
#include "ui_SMTExtFuncPageUI.h"
#include"qspinbox.h"


namespace Ui
{
	class SMTExtFuncPageUIClass;
}

class __declspec(dllexport) SMTExtFuncPageUI : public SMTSettingPage
{
	Q_OBJECT

public:
	SMTExtFuncPageUI(QWidget *parent = Q_NULLPTR);
	virtual ~SMTExtFuncPageUI();
	void simpleLog(QString fileName, QString body);
public:
	virtual SMTString name();
	virtual QWidget *widget();
	virtual void initGUI();
	virtual void updateGUI();
	void HandleInitUIChange(int index, QDoubleSpinBox *pWidget);
	void HandleInitUIChange(int index, QString *result);
	void HandleComBoxValueChange(int index, QString value, SMTVariableArray *pVariableArray, const SMTRefFormat &format);
	private slots:
	void on_pushButton_clicked();
	void on_comboBox_SelectPoint_valueChanged(int dvalue);


private:
	Ui::SMTExtFuncPageUIClass *ui;

private:
	bool InitUI = true;
};
